﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="SouthernLand.Controls.Contact"
    CodeBehind="Contact.ascx.cs" %>
<%@ Import Namespace="SouthernLand.Common.BOL.Content" %>
<%@ Register Src="~/Controls/MenuTop.ascx" TagName="MenuTop" TagPrefix="uc" %>
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>
            <%=Contents.GetstrContent(Convert.ToInt32(eContent.Lienhe)) %>
        </td>
    </tr>
    <tr>
        <td align="center">
            <asp:ValidationSummary runat="server" ID="valChangePasswordSummary" ShowMessageBox="true"
                ShowSummary="false" />
            <asp:UpdatePanel ID="EmployeesUpdatePanel" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <table border="0" cellpadding="6" id="Table2">
                        <tr>
                            <td align="center" colspan="2">
                                <asp:Panel runat="server" ID="PanelMsg" CssClass="lblMsg" Visible="false">
                                    <asp:Label runat="server" ID="lblMsg" Font-Bold="false"></asp:Label>
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td class="text" width="100" align="right" style="font-weight: bold;">
                                <%=ResourceManager.GetString("FullName")%>
                                :
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtFullName" Width="200" CssClass="textfield" MaxLength="200"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="text" align="right" style="font-weight: bold;">
                                <%=ResourceManager.GetString("Address") %>
                                :
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtAddress" Width="200" CssClass="textfield" MaxLength="200"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="text" align="right" style="font-weight: bold;">
                                <span class="Required">*</span>
                                <%=ResourceManager.GetString("Phone") %>
                                :
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtTel" Width="200" CssClass="textfield" MaxLength="200"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="text" align="right" style="font-weight: bold;">
                                <span class="Required">*</span>
                                <%=ResourceManager.GetString("Email") %>
                                :
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtEmail" Width="200" CssClass="textfield" MaxLength="200"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ControlToValidate="txtEmail"
                                    ID="RequiredFieldValidator3" ErrorMessage="The email can not be empty!" Display="none"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator SetFocusOnError="true" Display="none" ID="emailRegExValidator"
                                    runat="server" ControlToValidate="txtEmail" CssClass="error" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                    ErrorMessage="Địa chỉ email không hợp lệ!"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="text" align="right" style="font-weight: bold;">
                                <span class="Required">*</span>
                                <%=ResourceManager.GetString("Title") %>
                                :
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtTitle" Width="200" CssClass="textfield" MaxLength="200"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ControlToValidate="txtTitle"
                                    ID="RequiredFieldValidator4" ErrorMessage="The Title can not be empty!" Display="none"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="text" valign="top" align="right" style="font-weight: bold;">
                                <span class="Required">*</span>
                                <%=ResourceManager.GetString("Content") %>
                                :
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtContent" CssClass="textfield" TextMode="MultiLine"
                                    Rows="8" Width="350px" MaxLength="2000"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ControlToValidate="txtContent"
                                    ID="RequiredFieldValidator5" ErrorMessage="The content can not be empty!" Display="none"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="right">
                                <asp:ImageButton runat="server" ID="btSend" ImageUrl="~/Images/btChapNhan.gif" OnClick="btSend_Click" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>
    </tr>
    <tr>
        <td style="width:100%">
            <div id="map" style="width: 100%; height: 340px; float: left;">
            </div>
        </td>
    </tr>
</table>
